import axios from 'axios'

export default {
  // 没有用到这个ajax
  async checkUserRegistered (userid) {
    let result = await axios({
      url: '/login/checkUserRegistered',
      method: 'post',
      data: {
        userid: userid
      }
    })
    return result
  },
  // 更改完成
  async updateUserRegisterInfo (userId, organization, studentId, college) {
    let result = await axios({
      url: '/studentevaluation/api/user/insertUserData',
      method: 'post',
      params: {
        userId: userId,
        organization: organization,
        studentId: studentId,
        college: college
      }
    })
    return result
  }
}
